package com.hyg.module_health.model.datamodel;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

public class ShiChenYangShengData implements Parcelable {

    private int time = 0;
    private int ShiChenImageID = 0;
    private String ShiChen_Name = "";
    private String Suitable = "";
    private String Taboo = "";
    private String StartTime ="";
    private String EndTime ="";
    private ArrayList<String> Message = new ArrayList<>();

    public ShiChenYangShengData(int time, String shiChen_Name, String suitable, String taboo, String startTime, String endTime, ArrayList<String> message) {
        this.time = time;
        ShiChen_Name = shiChen_Name;
        Suitable = suitable;
        Taboo = taboo;
        StartTime = startTime;
        EndTime = endTime;
        Message = message;
    }

    public ShiChenYangShengData(int time, int shiChenImageID, String shiChen_Name, String suitable, String taboo, String startTime, String endTime, ArrayList<String> message) {
        this.time = time;
        ShiChenImageID = shiChenImageID;
        ShiChen_Name = shiChen_Name;
        Suitable = suitable;
        Taboo = taboo;
        StartTime = startTime;
        EndTime = endTime;
        Message = message;
    }


    protected ShiChenYangShengData(Parcel in) {
        time = in.readInt();
        ShiChenImageID = in.readInt();
        ShiChen_Name = in.readString();
        Suitable = in.readString();
        Taboo = in.readString();
        StartTime = in.readString();
        EndTime = in.readString();
        Message = in.createStringArrayList();
    }

    public static final Creator<ShiChenYangShengData> CREATOR = new Creator<ShiChenYangShengData>() {
        @Override
        public ShiChenYangShengData createFromParcel(Parcel in) {
            return new ShiChenYangShengData(in);
        }

        @Override
        public ShiChenYangShengData[] newArray(int size) {
            return new ShiChenYangShengData[size];
        }
    };

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public int getShiChenImageID() {
        return ShiChenImageID;
    }

    public void setShiChenImageID(int shiChenImageID) {
        ShiChenImageID = shiChenImageID;
    }

    public String getShiChen_Name() {
        return ShiChen_Name;
    }

    public void setShiChen_Name(String shiChen_Name) {
        ShiChen_Name = shiChen_Name;
    }

    public String getSuitable() {
        return Suitable;
    }

    public void setSuitable(String suitable) {
        Suitable = suitable;
    }

    public String getTaboo() {
        return Taboo;
    }

    public void setTaboo(String taboo) {
        Taboo = taboo;
    }

    public String getStartTime() {
        return StartTime;
    }

    public void setStartTime(String startTime) {
        StartTime = startTime;
    }

    public String getEndTime() {
        return EndTime;
    }

    public void setEndTime(String endTime) {
        EndTime = endTime;
    }

    public ArrayList<String> getMessage() {
        return Message;
    }

    public void setMessage(ArrayList<String> message) {
        Message = message;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(time);
        dest.writeInt(ShiChenImageID);
        dest.writeString(ShiChen_Name);
        dest.writeString(Suitable);
        dest.writeString(Taboo);
        dest.writeString(StartTime);
        dest.writeString(EndTime);
        dest.writeStringList(Message);
    }
}
